package com.woniuxy.tfss.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.tfss.entity.Address;
import com.woniuxy.tfss.entity.Comment;
import com.woniuxy.tfss.entity.Information;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface InformationMapper extends BaseMapper<Information> {
    @Select("select * from tfss_information where recid=#{userId} and rectype='1'")
    List<Information> getByUserId(Integer userId);

    @Select("select * from tfss_information where recid=#{riderId} and rectype='2'")
    List<Information> getByRiderId(Integer riderId);
}
